% This file creates Figure 3d and saves it as Figure3d.eps in
% \Replication_files\Figures\

clear
cd ../mat_files
load('fig3d_data.mat');

fig5d=figure;
hold on
box('on');

for i=1:21
    C=(21-i)*[1 1 1]./22;
    plot(-8:1:8,correlations(:,i),'LineWidth',0.5,'Color',C)
end
ylim([-0.9 -.5]);
xlim([-8 8]);
y1=get(gca,'ylim');
plot([0 0],y1,'--k','LineWidth',0.5);
xlabel('Lead/Lag of Markup','FontSize',11,'FontWeight','normal');
ylabel('Correlation with Output','FontSize',11,'FontWeight','normal');

fig5d.PaperUnits='inches';
fig5d.PaperPosition=[0 0 3.5 2.5];

cd ../Figures
print('Figure_3d','-depsc','-tiff')
cd ../m_files

clear